home *** CD-ROM | disk | FTP | other *** search
- on rolloverTest
- repeat with n = 4 to 7
- if rollOver(n) then
- repeat with x = 4 to 7
- puppetSprite(x, 0)
- end repeat
- updateStage()
- puppetSprite(n, 1)
- set the castNum of sprite n to the number of cast (word 1 of the name of cast the castNum of sprite n && "LOOP")
- updateStage()
- exit repeat
- next repeat
- end if
- repeat with x = 4 to 7
- puppetSprite(x, 0)
- end repeat
- end repeat
- if (rollOver(20) = 1) and (rollOver(48) = 0) and (the mouseCast <> -1) then
- puppetSprite(48, 1)
- set the stretch of sprite 48 to 0
- set the castNum of sprite 48 to the number of cast string(the name of cast the mouseCast & " Rollover")
- updateStage()
- else
- puppetSprite(48, 0)
- end if
- end
-
- on lightFlash
- global spriteClicked
- if (the mouseCast < 82) or (the mouseCast > 85) then
- set spriteClicked to the clickOn
- puppetSprite(spriteClicked, 1)
- set the castNum of sprite spriteClicked to the castNum of sprite spriteClicked + 4
- updateStage()
- repeat while the mouseDown
- nothing()
- end repeat
- puppetSprite(spriteClicked, 0)
- updateStage()
- end if
- end
-
- on tacomaRollover
- repeat with n = 26 to 28
- puppetSprite(n, 0)
- if rollOver(n) then
- puppetSprite(n, 1)
- set the castNum of sprite n to the number of cast (word 1 of the name of cast the castNum of sprite n & " rollover")
- end if
- end repeat
- end
-
- on trafficRollover
- if (rollOver(20) = 1) and (rollOver(48) = 0) and (the mouseCast <> -1) then
- puppetSprite(48, 1)
- set the stretch of sprite 48 to 0
- set the castNum of sprite 48 to the number of cast string(the name of cast the mouseCast & " Rollover")
- else
- if rollOver(21) then
- puppetSprite(47, 1)
- set the stretch of sprite 47 to 0
- set the castNum of sprite 47 to the number of cast string(the name of cast the mouseCast & " Rollover")
- else
- puppetSprite(47, 0)
- puppetSprite(48, 0)
- end if
- end if
- updateStage()
- end
-
- on undoChecks
- repeat with n = 0 to 12
- set the hilite of cast (the number of cast "first box" + n) to 0
- end repeat
- end
-